home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / dskut / ess1.zip / FDW.DOC < prev    next >
Text File  |  1993-03-26  |  8KB  |  153 lines

  1. ╔════ ═╦══╗ ╦   ╦ ────────────────────────────┬ ┬┌─┬┬  ┌─┐┌──┌─┐   ┌─┐┌──┌┐┌──┐
  2. ╠═══   ║  ║ ║ ║ ║  floppy disk wipe utility   ├─┤│ ││  │─┐├─ ├┬┘   │─┐├─ │││┌─┘
  3. ╨     ═╩══╝ ╚═╩═╝           v1.01             ┴ ┴┴─┘└──┴─┘└──┴└────┴─┘└──┘└┘└──
  4.  
  5.  
  6.           ------  please read the warning note at the end of this file  ------
  7.  
  8.  
  9. Purpose:  Fast erasing of floppy disks. The target disk will be erased by
  10.           overwriting the FAT and the root directory. Additionally, the boot
  11.           sector will be overwritten with the boot sector image stored in
  12.           the file FDW.DAT (or integrated into the program), if this is not
  13.           inhibited by the -P switch.
  14.             The stored boot sector image contains an extended BPB as
  15.           introduced by DOS 4.0, i.e. it contains a volume serial number and
  16.           a copy of the volume label. FDW will set these to VSN = <timestamp>
  17.           and LABEL = 'NO NAME    '. The physical drive number will be set
  18.           to 0000h; this is the value I always find on removable media.
  19.           The FAT type signature will be set to 'FAT12   ' or 'FAT16   '
  20.           according to the information from the BPB.
  21.             Hard disks and exotic media with a sector size other than 512 byte
  22.           will not be erased; the former for safety reasons, the latter,
  23.           because I don't know any and because it would be too complicated.
  24.  
  25. Usage:    FDW { -? | <d> [<nn>] [-V] [-C] [-P] [-I] [-Q] }
  26.  
  27.           Options may occur anywhere on the command line; a '/' may be used
  28.           instead of '-'. Grouping options together as in -VC is NOT allowed,
  29.           you must specify -V-C.
  30.           Separating parameters by blanks and the colon after the drive letter
  31.           are optional, so that 'FDW A: 1 -V' and 'FDW A1-V' are considered
  32.           to be identical.
  33.           When specifying a parameter after an option, it must be separated
  34.           by blanks, i.e. 'FDW -VA' is not allowed, but 'FDW -V A' is.
  35.           Command line handling is not case sensitive.
  36.  
  37. Parameters:  d = target drive
  38.                  not allowed are:
  39.                   - non removable media (for safety reasons),
  40.                   - drives simulated by SUBST,
  41.                   - network drives,
  42.                   - drives not permitting direct I/O,
  43.                   - media with a sector size <> 512 byte.
  44.  
  45.             nn = number of floppies (optional, range 0 - 99, default 0)
  46.                  The erasure will be repeated nn times; a value of 0 will
  47.                  erase 1 disk, but suppress the prompt to insert a disk.
  48.                  When -I is specified, any values greater than 1 are considered
  49.                  to be 1.
  50.  
  51. Options:    -? : show a help screen
  52.  
  53.             -V : verify disk writes
  54.                  If this option is specified, the DOS verify flag will be set
  55.                  during operation of FDW. By default, it is cleared for better
  56.                  performance. In any case, the original state of this flag
  57.                  is restored at program termination.
  58.  
  59.             -P : don''t overwrite boot sector, only FAT and root directory
  60.                  Overwriting the boot sector is skipped. The file FDW.DAT
  61.                  is not required.
  62.                  Not recommended, since an existing volume label will be
  63.                  deleted, but the duplicate volume label in the boot sector
  64.                  will not be replaced by 'NO NAME    ' (even though this
  65.                  should do no harm).
  66.                  When -I is specified, this option is ignored.
  67.  
  68.             -C : clear data area
  69.                  Fills the data area with a 00h byte. This method does NOT
  70.                  comply to any data security regulations, but it should be
  71.                  sufficient for the everyday user.
  72.                  All sectors from the sector given as first data sector in
  73.                  the disk parameter block up to the last disk sector are
  74.                  regarded as data sectors. Normally, these are all sectors
  75.                  on disk except boot-, FAT- and root directory sectors; this
  76.                  is not checked, though.
  77.                  When -I is specified, this option is ignored.
  78.  
  79.             -I : initialize: Don''t wipe disk, but read its boot sector
  80.                  for later use.
  81.                  A boot sector with an extended BPB (DOS4+) is required.
  82.                  This restriction is made for two reasons:
  83.                   - they exist, so they should be used,
  84.                   - I don't won't to distinguish between different formats
  85.                     when overwriting the boot sector.
  86.                  When this option is specified, -C, -P and <nn> used in
  87.                  a special way, see there.
  88.  
  89.             -Q : skip the greeting message.
  90.                  This option is not documented in the help screen.
  91.                  When -? is specified, this option is ignored.
  92.  
  93.           FDW looks for its data file FDW.DAT first in the current directory.
  94.           When it doesn't find it there, it looks in the directory from which
  95.           FDW.EXE is run (as specified in the program environment).
  96.           If a boot-sector is incorporated, it will be used only if the file
  97.           FDW.DAT is not found.
  98.             When -I is specified, the file FDW.DAT will always be created in
  99.           the directory from which FDW.EXE is run.
  100.             The file is checked for the following properties:
  101.            - The signature (55AAh) at Offset 1FEh must be present.
  102.            - The file size must be 512 byte.
  103.  
  104.           Speed:
  105.             The execution times shown below have been measured on a 10-MHz-AT
  106.           with a 5¼"-HD-drive. For comparison the execution time of FORMAT/U
  107.           with VERIFY ON is shown, too.
  108.             Obviously, using FDW with -C-V does not make much sense, and using
  109.           -C is not much faster than formatting in any case. Otherwise,
  110.           FDW accomplishes a very fast erasure of FAT and root directory.
  111.  
  112.                call          │  360K  │  1.2M  │
  113.               ───────────────┼────────┼────────┤
  114.                FDW A -C-V    │  0:40  │  1:32  │
  115.                FDW A -C      │  0:25  │  1:00  │
  116.                FDW A         │  0:03  │  0:03  │
  117.                FORMAT A:/U/V │  0:45  │  1:20  │
  118.  
  119.  
  120. Warning:  This program is 'dangerous', meaning:
  121. ═══════════════════════════════════════════════
  122.  
  123.        1) Disks will be erased without a warning.
  124.           This erasure process can not be undone by common UNDEL utilities,
  125.           and, when -C was specified, not even with any UNFORMAT utility
  126.           (possibly it can be undone by specialiced technical equipment).
  127.             This is intended, since it is the purpose of this program.
  128.           The danger is limited by the fact, that FDW only erases removable,
  129.           non-network drives not created by SUBST.
  130.           I consider this restriction to be neccessary; if you don't think so,
  131.           you can skip the corresponding test in the source text and
  132.           re-assemble the program.
  133.  
  134.        2) Defective disks will probably not be found, and sectors marked as
  135.           bad will be returned to active use without testing them. This may
  136.           lead to data losses. When -V-C is specified, defective sectors
  137.           probably are recognized, but the disk will not be processed further.
  138.             This, too, is intended. Handling of bad sectors would slow down
  139.           the program. Defective disks should be discarded anyway.
  140.           If you need to check for defective disks, use FORMAT d: /U.
  141.  
  142.        3) The program uses direct disk I/O and depends on DOS-internal table
  143.           formats. Although these are (according to Ralf Brown's interrupt
  144.           list) documented in DOS 4.0 or later, there may occur errors under
  145.           some system configurations.
  146.             In particular, the program will probably fail when run from
  147.           multitasking or multi-user-systems (like Windows, OS/2 DOS
  148.           Compatibility BOX e.a.).
  149.             You should'nt circumvent the test for DOS Version 4.00 or later,